package com.ac.cv.server.data;

import java.io.Serializable;
import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;


@PersistenceCapable (identityType = IdentityType.APPLICATION)
public class MenuMainItemData implements Serializable {
	@NotPersistent
	private static final long serialVersionUID = -3770056801611347105L;

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key id;
	
	@Persistent(mappedBy = "parent")
	private List<MenuItemData> itemList;
	
	@Persistent
	private String name;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Persistent
	private String title;
	
	public MenuMainItemData() {
		// TODO Auto-generated constructor stub
	}
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	

	public void setItemList(List<MenuItemData> itemList) {
		this.itemList = itemList;
	}

	public List<MenuItemData> getItemList() {
		return itemList;
	}

	public void setId(Key id) {
		this.id = id;
	}

	public Key getId() {
		return id;
	}

	

	
}
